package com.k2data.k2app.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.ZonedDateTime;

/**
 * @author lidong9144@163.com 17-6-23.
 */
@Data
@Table(name = "region")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Region implements Serializable {

    @JsonIgnore
    @Id
    @GeneratedValue(generator = "JDBC")
    private Long id;
    private String code;
    private Long parentId;
    private String name;
    private String province;
    private String city;
    private String district;
    private String location;
    private Double longitude;
    private Double latitude;
    @JsonIgnore
    private ZonedDateTime createTime;
    @JsonIgnore
    private ZonedDateTime updateTime;

}
